package rxb.demo.entity;

import java.io.Serializable;
import java.util.regex.Pattern;

/**
 * Created by asus on 2019/12/27.
 */
public class Partner implements Serializable {
    //合伙人的编号
    private Integer id;

    //合伙人的名称
    private String name;

    //合伙人的银行卡号
    private int bankcard;

    //联系人
    private String contacts;

    //电话
    private int phone
            ;
    //对象的角色，管理员0普通人1
    private int power;

    //空参构造
    public Partner(){
    }

    //带参构造
    public Partner(String name,int bankcard,String contacts,int phone,int power){
        this.name = name;
        this.bankcard = bankcard;
        this.contacts = contacts;
        this.phone = phone;
        this.power = power;
    }
    //getter setter
    public Integer getId(){return id;}
    public void setId(Integer id){this.id=id;}

    public String getName(){return name;}
    public void setName(){this.name=name;}

    public int getBankcard(){return bankcard;}
    public void setBankcard(){this.bankcard=bankcard;}

    public String getContacts(){return contacts;}
    public void setContacts(){this.contacts=contacts;}

    public int getPhone(){return phone;}
    public void setPhone(){this.phone=phone;}

    public int getPower(){return power;}
    public void setPower(){this.power=power;}


    //toString
    @Override
    public String toString(){
        final StringBuilder sb=new StringBuilder("Partner{");
        sb.append("id=").append(id);
        sb.append(",name='").append(name).append('\'');
        sb.append(",bankcard='").append(bankcard).append('\'');
        sb.append(",contacts='").append(contacts).append('\'');
        sb.append(",phone='").append(phone).append('\'');
        sb.append(",power='").append(power);
        sb.append('}');
        return sb.toString();
    }
}
